import {createApp} from 'vue'
import App from './App.vue'
import {  setupRouter } from '@/router';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {setupStore} from '@/store';
import "@/style/font.css"
// process.env.VUE_APP_MOCK === 'true' && require('../mock/index');
// 如果process.env.VUE_APP_MOCK === 'true' 则引入mock文件夹下的index.js中的拦截.
// 至于true为什么要加引号，大家体验一下不加的情况就能明白了，.env.development文件中的value都自动加了引号。不信的话试试下面这行展开
// console.log(process.env.VUE_APP_MOCK, typeof process.env.VUE_APP_MOCK);
const app = createApp(App)
setupStore(app)
// Configure routing
setupRouter(app);
// app.use(router)
app.use(ElementPlus)
app.mount('#app')
